package com.alogic.es.xscript.search;

import com.alogic.xscript.ExecuteWatcher;
import com.alogic.xscript.Logiclet;
import com.alogic.xscript.LogicletContext;
import com.alogic.xscript.doc.XsObject;
import com.alogic.xscript.plugins.Segment;
import com.anysoft.util.Properties;


/**
 * query context to search
 *
 * @since 1.6.13.9 [20200824 duanyy]
 */
public class EsQuery extends Segment {
    public EsQuery(String tag, Logiclet p) {
        super(tag, p);
    }

    @Override
    public void configure(Properties p){
        super.configure(p);
    }

    protected void onExecute(XsObject root, XsObject current, LogicletContext ctx, ExecuteWatcher watcher) {
        XsObject query = current.getObjectChild("query",true);
        super.onExecute(root,query,ctx,watcher);
    }
}